package com.dnxh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @Author 枳湫
 * @Time 2022/4/6 18:14
 * @Describe Basic_jar
 **/
@Data
@EqualsAndHashCode (callSuper = false)
@Accessors (chain = true)
@TableName ("t_department")
public class Department implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	@JsonSerialize (using = ToStringSerializer.class)
	@TableId (value = "id", type = IdType.ASSIGN_ID)
	private Long id;
	
	private String departmentName;
}
